//
//  XLCommitPictureView.h
//  XiangLove
//
//  Created by 宋振 on 2018/8/10.
//  Copyright © 2018年 BAOMIHUA.COM. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XLCommitGetUserModel.h"

//刷新图片显示
typedef void(^RefreshPicture)(NSIndexPath *indexPath,BOOL isHeaderImg);

@protocol XLCommitPictureViewDelegate <NSObject>

//更新数据源
- (void)commitPictureRefreshSource:(NSMutableArray *)array isRefresh:(BOOL)fresh isMove:(BOOL)isMoveItem;

//更新图片
- (void)commitPicturesReplaceImageWithIndexPath:(NSIndexPath *)indexPath selectIndex:(NSInteger)selectIndex;

@end

@interface XLCommitPictureView : UIView

//数据源
@property (nonatomic, strong) NSArray *  videos;

//数据类型
@property (nonatomic, strong) NSDictionary *  dataDic;

@property (nonatomic, assign) id<XLCommitPictureViewDelegate> delegate;

//
@property (nonatomic, copy) RefreshPicture refreshPictureView;

@property (nonatomic, strong) XLCommitGetUserModel *  model;





- (CGFloat)getHeaderHeight;

@end
